﻿<%@ Page Title="Change Password" Language="C#" MasterPageFile="~/authentication/Site.Master" AutoEventWireup="true"
    CodeBehind="ChangePassword.aspx.cs" Inherits="NibbleOil.Web.Account.ChangePassword" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="head">
    <style>
     .main
     {
         background-color:#F7F7DE;
         border-color:#CCCC99;
         border-style:solid;
         border-width:1px;
         font-family:Verdana;
         font-size:10pt;
         border-collapse:collapse;
     }
         
</style>
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="ContentPlaceHolder1">   
    <h2>
        Cambiar Clave
    </h2>
    <div >
           <table cellpadding="1" cellspacing="0" class="passrecoveryTable">
                <tr>
                    <td>
                        <table cellpadding="0" class="texto">
                            <tr>
                                <td align="center" colspan="2" class="titulo2">
                                    <label>Cambiar Clave</label>
                                </td>
                            </tr>
                            <tr>
                                <td><br /></td>
                            </tr>
                            <tr>
                                <td align="right">
                                    <asp:Label ID="CurrentPasswordLabel" runat="server" 
                                        AssociatedControlID="CurrentPassword">Clave</asp:Label>
                                </td>
                                <td align="left">
                                    <asp:TextBox ID="CurrentPassword" runat="server" TextMode="Password"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="CurrentPasswordRequired" runat="server" 
                                        ControlToValidate="CurrentPassword" ErrorMessage="Clave requerida." 
                                        ToolTip="Clave requerida." ValidationGroup="ChangePasswordGroup">*</asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr>
                                <td align="right">
                                    <asp:Label ID="NewPasswordLabel" runat="server" 
                                        AssociatedControlID="NewPassword">Nueva Clave</asp:Label>
                                </td>
                                <td align="left">
                                    <asp:TextBox ID="NewPassword" runat="server" TextMode="Password"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="NewPasswordRequired" runat="server" 
                                        ControlToValidate="NewPassword" ErrorMessage="Nueva Clave requerida." 
                                        ToolTip="Nueva Clave Requerida." ValidationGroup="ChangePasswordGroup">*</asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr>
                                <td align="right">
                                    <asp:Label ID="ConfirmNewPasswordLabel" runat="server" 
                                        AssociatedControlID="ConfirmNewPassword">Confirmar Nueva Clave</asp:Label>
                                </td>
                                <td align="left">
                                    <asp:TextBox ID="ConfirmNewPassword" runat="server" TextMode="Password"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="ConfirmNewPasswordRequired" runat="server" 
                                        ControlToValidate="ConfirmNewPassword" 
                                        ErrorMessage="Confirmación requerida." 
                                        ToolTip="Confirmación requerida." ValidationGroup="ChangePasswordGroup">*</asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr>
                                <td align="right" colspan="2">
                                    &nbsp;</td>
                            </tr>
                            <tr>
                                <td align="center" colspan="2">
                                    <asp:CustomValidator ID="CustomValidator1" runat="server" ValidationGroup="ChangePasswordGroup" Visible="false"></asp:CustomValidator>
                                    <asp:CustomValidator ID="CustomValidator2" runat="server" ValidationGroup="ChangePasswordGroup2" Visible="false"></asp:CustomValidator>
                                   <asp:ValidationSummary ID="ChangePasswordSummary" runat="server" ValidationGroup="ChangePasswordGroup" CssClass="MsgError"/>
                                   <asp:ValidationSummary ID="ChangePasswordSummary2" runat="server" ValidationGroup="ChangePasswordGroup2" CssClass="MsgOk"/>
                                </td>
                            </tr>
                            <tr>
                                <td align="center" colspan="2" style="color:Blue;">
                                    <asp:Literal ID="SucessText" runat="server" Visible="false" EnableViewState="False"></asp:Literal>
                                </td>
                            </tr>
                            <tr>
                                <td colspan="2" align="right">
                                     <asp:Button ID="CancelPushButton" runat="server" CausesValidation="False" 
                                        CommandName="Cancelar" Text="Cancel" onclick="CancelPushButton_Click" />
                                    <asp:Button ID="ChangePasswordPushButton" runat="server" 
                                        CommandName="ChangePassword" Text="Cambiar Clave" 
                                        ValidationGroup="ChangePassword1" 
                                         onclick="ChangePasswordPushButton_Click" />                                   
                                </td>                               
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
    </div>               
</asp:Content>
